package com.sgs.soda.auth.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Tim_Tian
 * @date 2021/7/22 18:23
 */
public class LoginRespDTO implements Serializable {
    private static final long serialVersionUID = -5052388114522284203L;
    /**
     * 访问令牌，用于资源访问
     */
    private String accessToken;
    /**
     * 当访问令牌失效，使用这个令牌重新获取访问令牌
     */
    private String refreshToken;
    /**
     * 令牌类型，这里是Bearer也就是基本HTTP认证
     */
    private String tokenType;
    /**
     * 过期时间
     */
    private Date expireIn;
    /**
     * JWT ID
     */
    private String jti;

    private String name;

    private Long userId;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public Date getExpireIn() {
        return expireIn;
    }

    public void setExpireIn(Date expireIn) {
        this.expireIn = expireIn;
    }

    public String getJti() {
        return jti;
    }

    public void setJti(String jti) {
        this.jti = jti;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
